package com.edu.service;

import com.edu.dao.usersMapper;
import com.edu.pojo.users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

public class userserviceImpl implements userservice{


    private usersMapper usersMapper;

    public void setUsersMapper(com.edu.dao.usersMapper usersMapper) {
        this.usersMapper = usersMapper;
    }

    public int adduser(users users) {
        return usersMapper.adduser(users);
    }

    public int deleteusersById(String id) {
        return usersMapper.deleteusersById(id);
    }

    public int updateuser(users users) {
        return usersMapper.updateuser(users);
    }

    public users queryuserById(String id) {
        return usersMapper.queryuserById(id);
    }

    public List<users> queryAlluser() {
        return usersMapper.queryAlluser();
    }

    public users login(String accounts,String password){
        return usersMapper.login(accounts, password);
    }

    public users getPassword(String accounts){
        return usersMapper.getPassword(accounts);
    }

    public int modifyPassword(String accounts ,String password){
        return usersMapper.modifyPassword(accounts, password);
    }
}
